package com.cskaoyan.service.admin.role;

import com.cskaoyan.bean.MarketRole;
import com.cskaoyan.bean.bo.admin.role.AdminRolePermissionBo;
import com.cskaoyan.bean.vo.admin.role.AdminRoleVo;
import com.cskaoyan.bean.vo.admin.role.permission.AdminPermissionVo;

import java.util.Map;

public interface AdminRoleService {
    AdminRoleVo list(Integer page, Integer limit, String sort, String order, String name);

    AdminRoleVo options();

    MarketRole create(Map<String, String> paraMap);

    void update(MarketRole role);

    void delete(MarketRole role);

    void permissions(AdminRolePermissionBo bo);

    AdminPermissionVo permissions(Integer roleId);
}
